Monitoring Allocation of Memory